# ______  ________________   ______ ____________  _________
# ___  / / /_  __ \__  __/   ___  //_/__  ____/ \/ /_  ___/
# __  /_/ /_  / / /_  /      __  ,<  __  __/  __  /_____ \ 
# _  __  / / /_/ /_  /       _  /| | _  /___  _  / ____/ / 
# /_/ /_/  \____/ /_/        /_/ |_| /_____/  /_/  /____/  
                                                         

#==============#
# APPLICATIONS #
#==============#

alt + shift + i
	brave-nightly
	
ctrl + alt + shift + i
	firefox
	
alt + shift + w
	whatsapp-nativefier-dark
	
super + Return
	kitty
	
ctrl + alt + shift + l
	openrgb

ctrl + alt + shift + d
	code

super + e
	nemo
#=======================#
# TERMINAL APPLICATIONS #
#=======================#

alt + shift + c
        konsole --separate --nofork -e 'bc -q'
        
alt + shift + t
        konsole --fullscreen --separate --nofork -e 'bpytop'
        
alt + shift + p
        kitty micro /home/$USER/.config/sxhkd/sxhkdrc
        #konsole --separate --nofork -e 'micro /home/$USER/.config/sxhkd/sxhkdrc'

super + shift + f
        konsole --separate --nofork -e 'ranger'
	
-----------------------------------------------------------------------------------

#==============#
# SNEAKY STUFF #
#==============#
#  \/  \/  \/  #=====================#
#------------------------------------#
# Playing youtube videos through mpv #
#------------------------------------#

alt + shift + v
	notify-send 'playing video' && mpv $(youtube-dl -f 22 -g $(xclip -selection c -o))

#------------------------------------#
# Application menu and emoji menu    #
#------------------------------------#

alt + shift + s
	rofi -modi "drun,run,window,file-browser,ssh" -show drun -show-icons -theme "/usr/share/rofi/themes/Planet.rasi" -font "ubuntu mono 24"
	#rofi -combi-modi drun -font "ubuntu mono 14" -show drun -show-icons

alt + shift + e
	rofi -modi "emoji" -show emoji -theme "/usr/share/rofi/themes/Planet.rasi" -font "ubuntu mono 24"

#------------------------------------#
# Autoclicker                        #
#------------------------------------#

ctrl + alt + shift + c
	click4ever

#------------------------------------#
# Screenshot -   -   -   -   -   -   #
#------------------------------------#

super + Print
	scrot -a 0,0,2560,1440 -e 'mv $f /home/$user/Pictures/screenshots/' ; sleep 0.5 && notify-send 'Screenshot saved to ~/Pictures/screenshots'

#------------------------------------#
# Modes -   -   -   -   -   -   -   -#
#------------------------------------#

ctrl + alt + super + shift + m
	/home/$USER/scripts/modes-scripts/main-modes-menu.sh

#============#	
# My servers #
#============#

alt + shift + j
	surf -b -D -I -n -S -T -F -z 1.5 https://YOUR.JELLYFIN.ADDRESS/jellyfin/web/index.html\#\!/home.html
	# I don't know why I am using so many flags...

alt + shift + o
	surf -z 2 https://WWW.YOUR.NEXTCLOUD.COM/apps/notes/

#===============#
# Media control #
#===============#

XF86AudioPlay
	playerctl play-pause

XF86AudioStop
	playerctl stop

XF86AudioPrev
	playerctl previous

XF86AudioNext
	playerctl next
	
#================#
# System control #
#================#

ctrl + alt + shift + r
	notify-send 'Restarting Hotkey Daemon' && killall sxhkd && sxhkd
	#Reload the hotkey daemon.
	#Use this after editing this file
		
ctrl + alt + super + shift + r
	shutdown -r now
	
ctrl + alt + super + shift + s
	/home/$USER/scripts/logout.sh
	#shutdown now

ctrl + alt + super + shift + p
	 pulseaudio-equalizer toggle && notify-send "Toggling BASS EQ"

ctrl + alt + super + shift + c
	pkill picom ;sleep 1 && picom ; notify-send "Compositor restarted"

ctrl + super + shift + alt + l
	slimlock

ctrl + super + shift + alt + z
	systemctl suspend

#--||-----------||--#
# =|| PLASMA DE ||= #
#==||===========||==#

ctrl + alt + shift + k
	killall plasmashell && kstart5 plasmashell && kwin_x11 --replace
	#reloads the desktop
	
#=============================================#

#--------------#
# NC PASSWORDS #
#--------------#

ctrl + shift + super + alt + k
	surf -z 1.75 https://YOUR.NEXTCLOUD.COM/apps/passwords/

#------#
# PASS #
#------#

alt + shift + k
	rofi-pass

#=============================================#

#===============#
# Notifications #
#===============#

#Notification center:
alt + shift + n
	kill -s USR1 $(pidof deadd-notification-center)
@______________________________________________________
######################################################/
# BSPWM #############################################/
####################################################/
###################################################/
##################################################/
#################################################/
################################################/
###############################################/
##############################################/
#############################################/
############################################/
###########################################/
@_________________________________________/

# quit/restart bspwm
super + alt + {q,r}
	bspc {quit,wm -r}

# close and kill
ctrl + alt + {_,shift + }q
	bspc node -{c,k}

# alternate between the tiled and monocle layout
super + m
	bspc desktop -l next

# send the newest marked node to the newest preselected node
super + y
	bspc node newest.marked.local -n newest.!automatic.local

# swap the current node and the biggest window
super + g
	bspc node -s biggest.window

#
# state/flags
#

# set the window state
super + {t,shift + t,s,f}
	bspc node -t {tiled,pseudo_tiled,floating,fullscreen}

# set the node flags
super + ctrl + {m,x,y,z}
	bspc node -g {marked,locked,sticky,private}

#
# focus/swap
#

# focus the node in the given direction
super + {_,shift + }{h,j,k,l}
	bspc node -{f,s} {west,south,north,east}

# focus the node for the given path jump
super + {p,b,comma,period}
	bspc node -f @{parent,brother,first,second}

# focus the next/previous window in the current desktop
super + {_,shift + }c
	bspc node -f {next,prev}.local.!hidden.window

# focus the next/previous desktop in the current monitor
super + bracket{left,right}
	bspc desktop -f {prev,next}.local

# focus the last node/desktop
super + {grave,Tab}
	bspc {node,desktop} -f last

# focus the older or newer node in the focus history
super + {o,i}
	bspc wm -h off; \
	bspc node {older,newer} -f; \
	bspc wm -h on

# focus or send to the given desktop
super + {_,shift + }{1-9,0}
	bspc {desktop -f,node -d} '^{1-9,10}'

#
# preselect
#

# preselect the direction
super + ctrl + {h,j,k,l}
	bspc node -p {west,south,north,east}

# preselect the ratio
super + ctrl + {1-9}
	bspc node -o 0.{1-9}

# cancel the preselection for the focused node
super + ctrl + space
	bspc node -p cancel

# cancel the preselection for the focused desktop
super + ctrl + shift + space
	bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel

#
# move/resize
#

# expand a window by moving one of its side outward
super + alt + {h,j,k,l}
	bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}

# contract a window by moving one of its side inward
super + alt + shift + {h,j,k,l}
	bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}

# move a floating window
super + {Left,Down,Up,Right}
	bspc node -v {-20 0,0 20,0 -20,20 0}



